package com.wn.entity;

import com.wn.validation_group.BookkeepingAddGroup;
import com.wn.validation_group.NcrAddGroup;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ author ：NST
 * @ date ：Created in 2022/10/19 11:39
 * @ description：库存台账表
 * @ modified By：
 * @ version: 1.0
 */
@Data
public class InventoryBookkeeping {
    @Min(value = 1,groups = NcrAddGroup.class,message = "物料不能为空")
    private int id;
    @NotNull(message = "物料信息不能为空",groups = BookkeepingAddGroup.class)
    private Material materialArchive;  //物料档案信息
    private String batchNumber;       //批次号
    private String workOrderNumber;   //工单号
    @Min(value = 1,message = "入库数量不得小于1",groups = BookkeepingAddGroup.class)
    private int inventory;            //库存数量
    @NotBlank(message = "库位不能为空",groups = BookkeepingAddGroup.class)
    private String warehouseSite;     //库位
    @NotBlank(message = "采购编号不能为空",groups = BookkeepingAddGroup.class)
    private String procurementNumber; //采购编号
    @NotBlank(message = "状态不能为空",groups = BookkeepingAddGroup.class)
    private String state; //状态
    private InspectionInWarehouseApplication inspectionInWarehouseApplication;
    private ReturnInWarehouseApplication returnInWarehouseApplication;
    private OutWarehouseApplication outWarehouseApplication;
    private BorrowWarehouseApplication borrowWarehouseApplication;
}
